import React, { Component } from 'react'
import Son from './Son'
import context from './context'
export default class Far extends Component {
  static contextType = context
  render() {
    return (
      <div>
        {/* 通过实例的context属性获取数据 */}
        Far,{this.context}
        <Son></Son>
      </div>
    )
  }
}

// Far.contextType = context
